2285c5bc1cdf3108bc38719659adf504e92512bf,com/gamingmesh/jobs/listeners/PistonProtectionListener.java,PistonProtectionListener,CheckVegy,#Block#,45
Before Change
@SuppressWarnings("deprecation")
public boolean CheckVegy(Block block) {
for (String ConfigOneBlock : Jobs.getRestrictedBlockManager().restrictedBlocksTimer) {
int ConfigPlacedBlockId = 0;
try {
ConfigPlacedBlockId = Integer.parseInt(ConfigOneBlock.split("-")[0]);
} catch (NumberFormatException e) {
continue;
}
if (block.getTypeId() == ConfigPlacedBlockId) {
return true;
}
}
After Change
@SuppressWarnings("deprecation")
public boolean CheckVegy(Block block) {
if (!Jobs.getRestrictedBlockManager().restrictedBlocksTimer.containsKey(block.getTypeId()))
return false;
return true;
}